package com.ym.jetpackhilt.work

import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters

class UploadWorker(appContext: Context, workerParams: WorkerParameters):
    Worker(appContext, workerParams) {
    override fun doWork(): Result {
        // Do the work here--in this case, upload the images.
        uploadImages()
        // Indicate whether the work finished successfully with the Result
        return Result.success()
    }

    fun uploadImages() {
        var a = 99999999999
        while (a > 0) {
            a--
            Log.e("-----log-----", "a:${a}")
        }
    }
}
